package com.yixin.hospital.entity.dto.req.dept;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel("编辑部门请求体")
@Data
public class DeptEditReqDTO {

    @ApiModelProperty("部门id")
    @NotNull(message = "部门id不能为空")
    private Long id;

    @ApiModelProperty("上级部门id")
    @NotNull(message = "上级部门id不能为空")
    private Long pid;

    @ApiModelProperty("部门名称")
    private String name;

    @ApiModelProperty("部门地址")
    private String address;

    @ApiModelProperty("部门电话")
    private String phone;

    @ApiModelProperty("部门主管")
    private Long manager;
}
